package com.itheima.stock.service;

import com.itheima.stock.common.domain.*;
import com.itheima.stock.pojo.StockBusiness;
import com.itheima.stock.vo.req.PageResult;
import com.itheima.stock.vo.resp.R;
import org.apache.poi.ss.formula.functions.T;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

//定义股票服务接口
public interface StockService {

    /**
     * 查询全部
     * @return
     */
    List<StockBusiness> findAll();

    //获取最新国内大盘参数
    R<List<InnerMarketDomain>> getInnerMarketInfos();

    R<List<StockBlockDomain>> getStockBlockInfos();

    R<List<StockUpdownDomain>> getStockUpDownInfos();

    R<PageResult<StockUpdownDomain>> getStockByPage(Integer page, Integer pageSize);

    //涨跌停数量
    R<Map> getStockUpdownCount();

    void exportStockInfoExcel(HttpServletResponse resp, Integer page, Integer pageSize);

    R<Map<String,List>> getTradeVolT_1();

    R<Map> getStockUpdownScopeNum();

    R<List<Stock4MinuteDomain>> getStockMinuteInfo(String code);

    R<List<Stock4EvrDayDomain>> getStock4EvrDay(String code);

}
